import json

def generate_test_cases():
    test_cases = [
        {
            "input": "25525511135",
            "output": ["255.255.11.135", "255.255.111.35"]
        },
        {
            "input": "0000",
            "output": ["0.0.0.0"]
        },
        {
            "input": "101023",
            "output": ["1.0.10.23", "1.0.102.3", "10.1.0.23", "10.10.2.3", "101.0.2.3"]
        },
        {
            "input": "256256256256",
            "output": []
        },
        {
            "input": "1111",
            "output": ["1.1.1.1"]
        }
    ]
    with open("test_cases.json", "w", encoding="utf-8") as f:
        json.dump(test_cases, f, ensure_ascii=False, indent=4)
    print("已生成5个测试样例到 test_cases.json")

if __name__ == "__main__":
    generate_test_cases() 